using System;
using System.Collections;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;

namespace BTSProjectWizard.Forms
{
	public class NumberPickerPage : BTSProjectWizard.BTSWizardPage
	{
		public override bool ProcessSymbols()
		{
			wizard.AddSymbol(Data,_number.Value);
			return true;
		}

		private System.Windows.Forms.NumericUpDown _number;
		private System.Windows.Forms.Label _numberLabel;
		private System.ComponentModel.IContainer components = null;

		public NumberPickerPage()
		{
			// This call is required by the Windows Form Designer.
			InitializeComponent();

			// TODO: Add any initialization after the InitializeComponent call
		}

		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		private void InitializeComponent()
		{
			System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(NumberPickerPage));
			this._number = new System.Windows.Forms.NumericUpDown();
			this._numberLabel = new System.Windows.Forms.Label();
			((System.ComponentModel.ISupportInitialize)(this._number)).BeginInit();
			this.SuspendLayout();
			// 
			// _number
			// 
			this._number.AccessibleDescription = resources.GetString("_number.AccessibleDescription");
			this._number.AccessibleName = resources.GetString("_number.AccessibleName");
			this._number.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("_number.Anchor")));
			this._number.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("_number.Dock")));
			this._number.Enabled = ((bool)(resources.GetObject("_number.Enabled")));
			this._number.Font = ((System.Drawing.Font)(resources.GetObject("_number.Font")));
			this._number.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("_number.ImeMode")));
			this._number.Location = ((System.Drawing.Point)(resources.GetObject("_number.Location")));
			this._number.Maximum = new System.Decimal(new int[] {
																	10000000,
																	0,
																	0,
																	0});
			this._number.Minimum = new System.Decimal(new int[] {
																	1,
																	0,
																	0,
																	0});
			this._number.Name = "_number";
			this._number.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("_number.RightToLeft")));
			this._number.Size = ((System.Drawing.Size)(resources.GetObject("_number.Size")));
			this._number.TabIndex = ((int)(resources.GetObject("_number.TabIndex")));
			this._number.TextAlign = ((System.Windows.Forms.HorizontalAlignment)(resources.GetObject("_number.TextAlign")));
			this._number.ThousandsSeparator = ((bool)(resources.GetObject("_number.ThousandsSeparator")));
			this._number.UpDownAlign = ((System.Windows.Forms.LeftRightAlignment)(resources.GetObject("_number.UpDownAlign")));
			this._number.Value = new System.Decimal(new int[] {
																  1,
																  0,
																  0,
																  0});
			this._number.Visible = ((bool)(resources.GetObject("_number.Visible")));
			// 
			// _numberLabel
			// 
			this._numberLabel.AccessibleDescription = resources.GetString("_numberLabel.AccessibleDescription");
			this._numberLabel.AccessibleName = resources.GetString("_numberLabel.AccessibleName");
			this._numberLabel.Anchor = ((System.Windows.Forms.AnchorStyles)(resources.GetObject("_numberLabel.Anchor")));
			this._numberLabel.AutoSize = ((bool)(resources.GetObject("_numberLabel.AutoSize")));
			this._numberLabel.Dock = ((System.Windows.Forms.DockStyle)(resources.GetObject("_numberLabel.Dock")));
			this._numberLabel.Enabled = ((bool)(resources.GetObject("_numberLabel.Enabled")));
			this._numberLabel.Font = ((System.Drawing.Font)(resources.GetObject("_numberLabel.Font")));
			this._numberLabel.Image = ((System.Drawing.Image)(resources.GetObject("_numberLabel.Image")));
			this._numberLabel.ImageAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("_numberLabel.ImageAlign")));
			this._numberLabel.ImageIndex = ((int)(resources.GetObject("_numberLabel.ImageIndex")));
			this._numberLabel.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("_numberLabel.ImeMode")));
			this._numberLabel.Location = ((System.Drawing.Point)(resources.GetObject("_numberLabel.Location")));
			this._numberLabel.Name = "_numberLabel";
			this._numberLabel.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("_numberLabel.RightToLeft")));
			this._numberLabel.Size = ((System.Drawing.Size)(resources.GetObject("_numberLabel.Size")));
			this._numberLabel.TabIndex = ((int)(resources.GetObject("_numberLabel.TabIndex")));
			this._numberLabel.Text = resources.GetString("_numberLabel.Text");
			this._numberLabel.TextAlign = ((System.Drawing.ContentAlignment)(resources.GetObject("_numberLabel.TextAlign")));
			this._numberLabel.Visible = ((bool)(resources.GetObject("_numberLabel.Visible")));
			// 
			// NumberPickerPage
			// 
			this.AccessibleDescription = resources.GetString("$this.AccessibleDescription");
			this.AccessibleName = resources.GetString("$this.AccessibleName");
			this.AutoScroll = ((bool)(resources.GetObject("$this.AutoScroll")));
			this.AutoScrollMargin = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMargin")));
			this.AutoScrollMinSize = ((System.Drawing.Size)(resources.GetObject("$this.AutoScrollMinSize")));
			this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
			this.Controls.Add(this._numberLabel);
			this.Controls.Add(this._number);
			this.Enabled = ((bool)(resources.GetObject("$this.Enabled")));
			this.Font = ((System.Drawing.Font)(resources.GetObject("$this.Font")));
			this.ImeMode = ((System.Windows.Forms.ImeMode)(resources.GetObject("$this.ImeMode")));
			this.Location = ((System.Drawing.Point)(resources.GetObject("$this.Location")));
			this.Name = "NumberPickerPage";
			this.RightToLeft = ((System.Windows.Forms.RightToLeft)(resources.GetObject("$this.RightToLeft")));
			this.Size = ((System.Drawing.Size)(resources.GetObject("$this.Size")));
			this.Load += new System.EventHandler(this.NumberPickerPage_Load);
			((System.ComponentModel.ISupportInitialize)(this._number)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		private void NumberPickerPage_Load(object sender, System.EventArgs e)
		{
			_numberLabel.Text = this.Title;
		}
	}
}

